package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.course.dto.CourseScheduleDto;
import com.fitness.fitness.modal.course.entity.CourseSchedule;
import com.fitness.fitness.modal.course.vo.CourseScheduleVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CourseScheduleConvertor {
    CourseScheduleVO entity2Vo(CourseSchedule courseSchedule);

    CourseSchedule dto2Entity(CourseScheduleDto courseScheduleDto);

    Page<CourseScheduleVO> entity2Vo(Page<CourseSchedule> coachBoPage);

    List<CourseScheduleVO> entities2Vos(List<CourseSchedule> list);
}
